package com.ktg.mes.wm.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ktg.mes.md.domain.MdItem;
import com.ktg.mes.util.LeftJoin;
import lombok.Data;
import lombok.experimental.Accessors;

import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;


/**
 * 产品出库记录对象 wm_stock_out
 *
 * @author byteco
 * @date 2022-12-15
 */

@Data
@Accessors(chain = true)
@TableName("wm_stock_out")
public class WmStockOut extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    @Excel(name = "入库单iD")
    @LeftJoin(leftTable ="wm_item_recpt_line",leftTableColumn = "line_id",selectColumn = WmItemRecptLine.mainSelectColumnNotId)
    private Integer itemRecptLineId;


    /** 产品物料id */
    @LeftJoin(leftTable ="md_item",leftTableColumn = "item_id",selectColumn = MdItem.mainSelectColumnNotId)
    private Long itemId;



    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;


    /** 状态 */
    @Excel(name = "状态")
    private Long status;


    /** 客户需求单id */
    @Excel(name = "客户需求单id")
    private String itemNeedId;


    /** 总数量 */
    @Excel(name = "总数量")
    @TableField(exist = false)
    private Long quantityAll;

}
